<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="sysDefault" />
<%-- <script
	src="${staticPath}/lib/jquery-datatables/1.9.4/js/jquery.dataTables.min.js"
	type="text/javascript"></script>
<script type="text/javascript"
	src="${staticPath}/lib/jquery/1.10.2/jquery.js"></script>
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/bootstrap-datetimepicker.min.js"
	type="text/javascript"></script>
<script
	src="${staticPath}/lib/datetimepicker/0.0.11/js/locales/bootstrap-datetimepicker.zh-CN.js"
	type="text/javascript"></script>
<script src="${staticPath}/lib/accounting/0.3.2/accounting.min.js"
	type="text/javascript"></script> --%>

<script type="text/javascript">
	$(document).ready(function() {
	});
	function funform(url, target) {
		window.open(url, target);
	}
</script>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12">
				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">
							库存地点信息列表
							<button class="btn btn-success btn-sm pull-right"
								onclick="funform('${contextPath}/sys/base/storage/addStorageLocation','_self');">新增</button>
						</h3>
					</div>

					<form:form name="listForm" modelAttribute="sysBaseStorageLocation"
						action="${contextPath}/sys/base/storage/getStorageLocationList"
						class="form-inline" role="form" method="post">
						<div class="o-l-search-builder f_1">
							<div class="form-group">
								<form:input path="name" class="form-control"
									placeholder="库存地点名称" />
							</div>
							<div class="form-group">
								<form:input path="code" class="form-control"
									placeholder="库存地点编码" />
							</div>
							<button class="btn btn-primary" type="submit">查询</button>
						</div>
						<tags:message content="${message}" />
						<div class="o-l-search-builder f_9">
							<table class="table table-striped table-bordered table-hover">
								<thead>
								</thead>
								<thead>
									<tr>
										<th>库存地点编码</th>
										<th>库存地点名称</th>
										<th>库区地址</th>
										<th>库区电话</th>
										<th>所属门店编码</th>
										<th>所属门店</th>
										<th>创建时间</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach var="storageLocation" items="${page.list}"
										varStatus="i">
										<tr>
											<td>${storageLocation.code}</td>
											<td>${storageLocation.name}</td>
											<td>${storageLocation.address}</td>
											<td>${storageLocation.telephone}</td>
											<td>${storageLocation.shopCode}</td>
											<td>${storageLocation.shopName}</td>
											<td><fmt:formatDate
													value="${storageLocation.createTime}" pattern="yyyy-MM-dd " /></td>
											<td><a
												href="${contextPath}/sys/base/storage/viewStorageLocation?code=${storageLocation.id}&shopName=${storageLocation.shopName}">查看</a>
												<a
												href="${contextPath}/sys/base/storage/updateStorageLocation?code=${storageLocation.id}&shopName=${storageLocation.shopName}">修改</a><a
												href="${contextPath}/sys/base/storage/removeStorageLocation?code=${storageLocation.id}&shopName=${storageLocation.shopName}"
												onclick="return Oosp_Confirm('确认要删除该条数据吗？', this.href)">删除</a>

											</td>
										</tr>
									</c:forEach>
								</tbody>
							</table>
							<div class="panel-footer">
								<pager:pager pageSize="${page.pageSize}" pageNo="${page.pageNo}"
									url="" total="${page.total}" />
								<script type="text/javascript" src="${staticPath}/js/list.js"></script>
							</div>
						</div>
					</form:form>
				</div>
			</div>
		</div>
	</div>
	</div>
</body>
</html>